<?php
/**
 * デフォルトスキンモジュール
 */
class skin_default {
	public function __construct () {
	}


	public function init () {
		Y('this.YFWsys+', YuTori::Create($this,'YFWsys'));
		Y('this.Editor+', YuTori::Create($this,'Editor'));
	}

	public function YFWsys () {
		Y('Logger.Debug', 'modYFWsys用スキン展開');
		$toObj = Y('Document.Header');
		$tag = $toObj->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./vars/mod/skin_default/css/reset.css',
		));

		$tag = $toObj->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./vars/mod/skin_default/css/admin.css',
		));

		$tag = $toObj->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			
			'src'		=>'./vars/mod/skin_default/js/jquery/jquery.js',
		));
		$tag->Text('');

		$tag = $toObj->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./vars/mod/skin_default/js/admin.js',
		));
		$tag->Text('');

	}

	public function Editor () {
		Y('Logger.Debug', 'modEditor用スキン展開');
		$toObj = Y('Document.Header');

		$tag = $toObj->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./vars/mod/skin_default/js/jquery/plugins/liscroll/jquery.li-scroller.1.0.js',
		));
		$tag->Text('');

		$tag = $toObj->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./vars/mod/skin_default/js/jquery/plugins/liscroll/li-scroller.css',
		));

		$tag = $toObj->DOG_appendChild ('link');
		$tag->attr (array(
			'rel'		=>'stylesheet',
			'type'		=>'text/css',
			'href'		=>'./vars/mod/skin_default/css/editor.css',
		));

		$tag = $toObj->DOG_appendChild ('script');
		$tag->attr (array(
			'type'		=>'text/javascript',
			'src'		=>'./vars/mod/skin_default/js/editor.js',
		));
		$tag->Text('');

	}

}
?>